package com.shuzi.MediaShare;

import android.app.Application;

import com.shuzi.MediaShare.control.ImageLoaderManager;
import com.shuzi.MediaShare.download.DownloadManager;
import com.shuzi.MediaShare.utils.CrashHandler;

/**
 * 应用程序入口
 * 
 * @author lung 下午8:45:28 2013
 */
public class MediaShareApplication extends Application
{

	@Override
	public void onCreate()
	{
		super.onCreate();
		CrashHandler crashHandler = CrashHandler.getInstance();
		crashHandler.init(getApplicationContext());
		// 初始化常量一些配置
		Constant.init(this);
		// 初始化图片下载管理器
		ImageLoaderManager.getInstace().init(this);
		// 下载管理器初始化
		DownloadManager.getInstace().init(this);
	}

	@Override
	public void onLowMemory()
	{
		// TODO Auto-generated method stub
		super.onLowMemory();
	}
}
